package cn.itcast.nems.enrol.dao.mapper;

import cn.itcast.nems.enrol.dao.dataobject.ActivityCourseDO;
import cn.itcast.nems.enrol.dao.entity.ActivityCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityCourseMapper extends BaseMapper<ActivityCourse> {

    /**
     * 根据活动编号查询学科信息
     *
     * @param activityCode 活动编号
     * @return 学科信息
     */
    List<ActivityCourseDO> selectActivityCourses(@Param("activityCode") String activityCode);

    /**
     * 查询班级信息
     *
     * @param schoolId  校区ID
     * @param subjectId 学科ID
     * @return 班级ID
     */
    ActivityCourseDO selectActivityCourse(@Param("schoolId") String schoolId, @Param("subjectId") String subjectId);
}
